﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;


namespace TyMES.ViewModel.BaseInformation.DqOrderVMs
{
    public partial class DqOrderTemplateVM : BaseTemplateVM
    {
        [Display(Name = "工厂编号")]
        public ExcelPropety factoryCode_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.factoryCode);
        [Display(Name = "产线编号")]
        public ExcelPropety lineCode_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.lineCode);
        [Display(Name = "产线名称")]
        public ExcelPropety lineName_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.lineName);
        [Display(Name = "主排程号")]
        public ExcelPropety scheduleNumber_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.scheduleNumber);
        [Display(Name = "计划开始时间")]
        public ExcelPropety startTime_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.startTime);
        [Display(Name = "计划结束时间")]
        public ExcelPropety endTime_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.endTime);
        [Display(Name = "工单编码")]
        public ExcelPropety orderCode_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.orderCode);
        [Display(Name = "工单数量")]
        public ExcelPropety orderQty_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.orderQty);
        [Display(Name = "工单类型")]
        public ExcelPropety orderType_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.orderType);
        [Display(Name = "工单状态")]
        public ExcelPropety orderStatus_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.orderStatus);
        [Display(Name = "工单状态编码")]
        public ExcelPropety orderStateCode_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.orderStateCode);
        [Display(Name = "工单开始时间")]
        public ExcelPropety orderStartTime_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.orderStartTime);
        [Display(Name = "工单结束时间时间")]
        public ExcelPropety orderEndTime_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.orderEndTime);
        [Display(Name = "排程编码")]
        public ExcelPropety scheduleCode_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.scheduleCode);
        [Display(Name = "排程数量")]
        public ExcelPropety scheduleQty_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.scheduleQty);
        [Display(Name = "排程状态")]
        public ExcelPropety scheduleStatus_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.scheduleStatus);
        [Display(Name = "排程状态编码")]
        public ExcelPropety scheduleStateCode_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.scheduleStateCode);
        [Display(Name = "排程开始时间")]
        public ExcelPropety scheduleStartTime_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.scheduleStartTime);
        [Display(Name = "排程结束时间")]
        public ExcelPropety scheduleEndTime_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.scheduleEndTime);
        [Display(Name = "产品编码")]
        public ExcelPropety productCode_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.productCode);
        [Display(Name = "产品名称")]
        public ExcelPropety productName_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.productName);
        [Display(Name = "产品版本")]
        public ExcelPropety productVersion_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.productVersion);
        [Display(Name = "物料编码")]
        public ExcelPropety materialCode_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.materialCode);
        [Display(Name = "物料名称")]
        public ExcelPropety materialName_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.materialName);
        [Display(Name = "物料版本")]
        public ExcelPropety materialVersion_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.materialVersion);
        [Display(Name = "工艺编号")]
        public ExcelPropety routeCode_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.routeCode);
        [Display(Name = "工艺名称")]
        public ExcelPropety routeName_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.routeName);
        [Display(Name = "工艺路线版本")]
        public ExcelPropety routeVersion_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.routeVersion);
        [Display(Name = "priority")]
        public ExcelPropety priority_Excel = ExcelPropety.CreateProperty<DqOrder>(x => x.priority);

	    protected override void InitVM()
        {
        }

    }

    public class DqOrderImportVM : BaseImportVM<DqOrderTemplateVM, DqOrder>
    {

    }

}
